/**
 * 
 */
package sources;

import java.util.Collection;
import java.util.Date;
import java.util.Iterator;

/**
 * @author Lookouster
 *
 */
public class Controle {
private int idControle;

	/*
 * (non-javadoc)
 */
private Controleur controleur;
private Date dateControle;
 
/**
 * Getter of the property <tt>controleur</tt>
 *
 * @return Returns the controleur.
 * 
 */
public Controleur getControleur()
{
	return controleur;
}

/**
 * Setter of the property <tt>controleur</tt>
 *
 * @param controleur The controleur to set.
 *
 */
public void setControleur(Controleur controleur ){
	this.controleur = controleur;
}

	/**
 *
 */
private Collection<Remarque> remarque;

/**
 * Getter of the property <tt>remarque</tt>
 *
 * @return Returns the remarque.
 * 
 */
public Collection<Remarque> getRemarque()
{
	return remarque;
}
 
/**
 * Returns an iterator over the elements in this collection. 
 *
 * @return an <tt>Iterator</tt> over the elements in this collection
 * @see	java.util.Collection#iterator()
 * 
 */
public Iterator<Remarque> remarqueIterator(){
	return remarque.iterator();
}

/**
 * Returns <tt>true</tt> if this collection contains no elements.
 *
 * @return <tt>true</tt> if this collection contains no elements
 * @see	java.util.Collection#isEmpty()
 *
 */
public boolean isRemarqueEmpty(){
	return remarque.isEmpty();
}

/**
 * Returns <tt>true</tt> if this collection contains the specified element. 
 *
 * @param element whose presence in this collection is to be tested.
 * @see	java.util.Collection#contains(Object)
 *
 */
public boolean containsRemarque(Remarque remarque){
	return this.remarque.contains(remarque);
}

/**
 * Returns <tt>true</tt> if this collection contains all of the elements
 * in the specified collection.
 *
 * @param elements collection to be checked for containment in this collection.
 * @see	java.util.Collection#containsAll(Collection)
 *
 */
public boolean containsAllRemarque(Collection<Remarque> remarque){
	return this.remarque.containsAll(remarque);
}

/**
 * Returns the number of elements in this collection.
 *
 * @return the number of elements in this collection
 * @see	java.util.Collection#size()
 *
 */
public int remarqueSize(){
	return remarque.size();
}

/**
 * Returns all elements of this collection in an array.
 *
 * @return an array containing all of the elements in this collection
 * @see	java.util.Collection#toArray()
 *
 */
public Remarque[] remarqueToArray(){
	return remarque.toArray(new Remarque[remarque.size()]);
}


/**
 * Ensures that this collection contains the specified element (optional
 * operation). 
 *
 * @param element whose presence in this collection is to be ensured.
 * @see	java.util.Collection#add(Object)
 *
 */
public boolean addRemarque(Remarque remarque){
	return this.remarque.add(remarque);
}

/**
 * Setter of the property <tt>remarque</tt>
 *
 * @param remarque the remarque to set.
 *
 */
public void setRemarque(Collection<Remarque> remarque){
	this.remarque = remarque;
}

/**
 * Removes a single instance of the specified element from this
 * collection, if it is present (optional operation).
 *
 * @param element to be removed from this collection, if present.
 * @see	java.util.Collection#add(Object)
 *
 */
public boolean removeRemarque(Remarque remarque){
	return this.remarque.remove(remarque);
}

/**
 * Removes all of the elements from this collection (optional operation).
 *
 * @see	java.util.Collection#clear()
 *
 */
public void clearRemarque(){
	this.remarque.clear();
}

	/**
 *
 */
private Collection<EspaceTravail> espaceTravail;

/**
 * Getter of the property <tt>espaceTravail</tt>
 *
 * @return Returns the espaceTravail.
 * 
 */
public Collection<EspaceTravail> getEspaceTravail()
{
	return espaceTravail;
}
 
/**
 * Returns an iterator over the elements in this collection. 
 *
 * @return an <tt>Iterator</tt> over the elements in this collection
 * @see	java.util.Collection#iterator()
 * 
 */
public Iterator<EspaceTravail> espaceTravailIterator(){
	return espaceTravail.iterator();
}

/**
 * Returns <tt>true</tt> if this collection contains no elements.
 *
 * @return <tt>true</tt> if this collection contains no elements
 * @see	java.util.Collection#isEmpty()
 *
 */
public boolean isEspaceTravailEmpty(){
	return espaceTravail.isEmpty();
}

/**
 * Returns <tt>true</tt> if this collection contains the specified element. 
 *
 * @param element whose presence in this collection is to be tested.
 * @see	java.util.Collection#contains(Object)
 *
 */
public boolean containsEspaceTravail(EspaceTravail espaceTravail){
	return this.espaceTravail.contains(espaceTravail);
}

/**
 * Returns <tt>true</tt> if this collection contains all of the elements
 * in the specified collection.
 *
 * @param elements collection to be checked for containment in this collection.
 * @see	java.util.Collection#containsAll(Collection)
 *
 */
public boolean containsAllEspaceTravail(Collection<EspaceTravail> espaceTravail){
	return this.espaceTravail.containsAll(espaceTravail);
}

/**
 * Returns the number of elements in this collection.
 *
 * @return the number of elements in this collection
 * @see	java.util.Collection#size()
 *
 */
public int espaceTravailSize(){
	return espaceTravail.size();
}

/**
 * Returns all elements of this collection in an array.
 *
 * @return an array containing all of the elements in this collection
 * @see	java.util.Collection#toArray()
 *
 */
public EspaceTravail[] espaceTravailToArray(){
	return espaceTravail.toArray(new EspaceTravail[espaceTravail.size()]);
}


/**
 * Ensures that this collection contains the specified element (optional
 * operation). 
 *
 * @param element whose presence in this collection is to be ensured.
 * @see	java.util.Collection#add(Object)
 *
 */
public boolean addEspaceTravail(EspaceTravail espaceTravail){
	return this.espaceTravail.add(espaceTravail);
}

/**
 * Setter of the property <tt>espaceTravail</tt>
 *
 * @param espaceTravail the espaceTravail to set.
 *
 */
public void setEspaceTravail(Collection<EspaceTravail> espaceTravail){
	this.espaceTravail = espaceTravail;
}

/**
 * Removes a single instance of the specified element from this
 * collection, if it is present (optional operation).
 *
 * @param element to be removed from this collection, if present.
 * @see	java.util.Collection#add(Object)
 *
 */
public boolean removeEspaceTravail(EspaceTravail espaceTravail){
	return this.espaceTravail.remove(espaceTravail);
}

/**
 * Removes all of the elements from this collection (optional operation).
 *
 * @see	java.util.Collection#clear()
 *
 */
public void clearEspaceTravail(){
	this.espaceTravail.clear();
}

}
